package com.jieshuibao.model.db;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class CardBatchExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    private int pageIndex;

    private int pageSize;

    public CardBatchExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public void setPageIndex(int pageIndex) {
        this.pageIndex=pageIndex;
    }

    public int getPageIndex() {
        return this.pageIndex;
    }

    public void setPageSize(int pageSize) {
        this.pageSize=pageSize;
    }

    public int getPageSize() {
        return this.pageSize;
    }

    public CardBatchExample(int pageIndex, int pageSize) {
        this();
        this.pageIndex=pageIndex;
        this.pageSize=pageSize;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("card_batch.id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("card_batch.id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Long value) {
            addCriterion("card_batch.id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Long value) {
            addCriterion("card_batch.id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Long value) {
            addCriterion("card_batch.id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Long value) {
            addCriterion("card_batch.id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Long value) {
            addCriterion("card_batch.id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Long value) {
            addCriterion("card_batch.id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Long> values) {
            addCriterion("card_batch.id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Long> values) {
            addCriterion("card_batch.id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Long value1, Long value2) {
            addCriterion("card_batch.id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Long value1, Long value2) {
            addCriterion("card_batch.id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andStartNoIsNull() {
            addCriterion("card_batch.startNo is null");
            return (Criteria) this;
        }

        public Criteria andStartNoIsNotNull() {
            addCriterion("card_batch.startNo is not null");
            return (Criteria) this;
        }

        public Criteria andStartNoEqualTo(Long value) {
            addCriterion("card_batch.startNo =", value, "startNo");
            return (Criteria) this;
        }

        public Criteria andStartNoNotEqualTo(Long value) {
            addCriterion("card_batch.startNo <>", value, "startNo");
            return (Criteria) this;
        }

        public Criteria andStartNoGreaterThan(Long value) {
            addCriterion("card_batch.startNo >", value, "startNo");
            return (Criteria) this;
        }

        public Criteria andStartNoGreaterThanOrEqualTo(Long value) {
            addCriterion("card_batch.startNo >=", value, "startNo");
            return (Criteria) this;
        }

        public Criteria andStartNoLessThan(Long value) {
            addCriterion("card_batch.startNo <", value, "startNo");
            return (Criteria) this;
        }

        public Criteria andStartNoLessThanOrEqualTo(Long value) {
            addCriterion("card_batch.startNo <=", value, "startNo");
            return (Criteria) this;
        }

        public Criteria andStartNoIn(List<Long> values) {
            addCriterion("card_batch.startNo in", values, "startNo");
            return (Criteria) this;
        }

        public Criteria andStartNoNotIn(List<Long> values) {
            addCriterion("card_batch.startNo not in", values, "startNo");
            return (Criteria) this;
        }

        public Criteria andStartNoBetween(Long value1, Long value2) {
            addCriterion("card_batch.startNo between", value1, value2, "startNo");
            return (Criteria) this;
        }

        public Criteria andStartNoNotBetween(Long value1, Long value2) {
            addCriterion("card_batch.startNo not between", value1, value2, "startNo");
            return (Criteria) this;
        }

        public Criteria andEndNoIsNull() {
            addCriterion("card_batch.endNo is null");
            return (Criteria) this;
        }

        public Criteria andEndNoIsNotNull() {
            addCriterion("card_batch.endNo is not null");
            return (Criteria) this;
        }

        public Criteria andEndNoEqualTo(Long value) {
            addCriterion("card_batch.endNo =", value, "endNo");
            return (Criteria) this;
        }

        public Criteria andEndNoNotEqualTo(Long value) {
            addCriterion("card_batch.endNo <>", value, "endNo");
            return (Criteria) this;
        }

        public Criteria andEndNoGreaterThan(Long value) {
            addCriterion("card_batch.endNo >", value, "endNo");
            return (Criteria) this;
        }

        public Criteria andEndNoGreaterThanOrEqualTo(Long value) {
            addCriterion("card_batch.endNo >=", value, "endNo");
            return (Criteria) this;
        }

        public Criteria andEndNoLessThan(Long value) {
            addCriterion("card_batch.endNo <", value, "endNo");
            return (Criteria) this;
        }

        public Criteria andEndNoLessThanOrEqualTo(Long value) {
            addCriterion("card_batch.endNo <=", value, "endNo");
            return (Criteria) this;
        }

        public Criteria andEndNoIn(List<Long> values) {
            addCriterion("card_batch.endNo in", values, "endNo");
            return (Criteria) this;
        }

        public Criteria andEndNoNotIn(List<Long> values) {
            addCriterion("card_batch.endNo not in", values, "endNo");
            return (Criteria) this;
        }

        public Criteria andEndNoBetween(Long value1, Long value2) {
            addCriterion("card_batch.endNo between", value1, value2, "endNo");
            return (Criteria) this;
        }

        public Criteria andEndNoNotBetween(Long value1, Long value2) {
            addCriterion("card_batch.endNo not between", value1, value2, "endNo");
            return (Criteria) this;
        }

        public Criteria andNumIsNull() {
            addCriterion("card_batch.num is null");
            return (Criteria) this;
        }

        public Criteria andNumIsNotNull() {
            addCriterion("card_batch.num is not null");
            return (Criteria) this;
        }

        public Criteria andNumEqualTo(Long value) {
            addCriterion("card_batch.num =", value, "num");
            return (Criteria) this;
        }

        public Criteria andNumNotEqualTo(Long value) {
            addCriterion("card_batch.num <>", value, "num");
            return (Criteria) this;
        }

        public Criteria andNumGreaterThan(Long value) {
            addCriterion("card_batch.num >", value, "num");
            return (Criteria) this;
        }

        public Criteria andNumGreaterThanOrEqualTo(Long value) {
            addCriterion("card_batch.num >=", value, "num");
            return (Criteria) this;
        }

        public Criteria andNumLessThan(Long value) {
            addCriterion("card_batch.num <", value, "num");
            return (Criteria) this;
        }

        public Criteria andNumLessThanOrEqualTo(Long value) {
            addCriterion("card_batch.num <=", value, "num");
            return (Criteria) this;
        }

        public Criteria andNumIn(List<Long> values) {
            addCriterion("card_batch.num in", values, "num");
            return (Criteria) this;
        }

        public Criteria andNumNotIn(List<Long> values) {
            addCriterion("card_batch.num not in", values, "num");
            return (Criteria) this;
        }

        public Criteria andNumBetween(Long value1, Long value2) {
            addCriterion("card_batch.num between", value1, value2, "num");
            return (Criteria) this;
        }

        public Criteria andNumNotBetween(Long value1, Long value2) {
            addCriterion("card_batch.num not between", value1, value2, "num");
            return (Criteria) this;
        }

        public Criteria andChannelIdIsNull() {
            addCriterion("card_batch.channelId is null");
            return (Criteria) this;
        }

        public Criteria andChannelIdIsNotNull() {
            addCriterion("card_batch.channelId is not null");
            return (Criteria) this;
        }

        public Criteria andChannelIdEqualTo(Long value) {
            addCriterion("card_batch.channelId =", value, "channelId");
            return (Criteria) this;
        }

        public Criteria andChannelIdNotEqualTo(Long value) {
            addCriterion("card_batch.channelId <>", value, "channelId");
            return (Criteria) this;
        }

        public Criteria andChannelIdGreaterThan(Long value) {
            addCriterion("card_batch.channelId >", value, "channelId");
            return (Criteria) this;
        }

        public Criteria andChannelIdGreaterThanOrEqualTo(Long value) {
            addCriterion("card_batch.channelId >=", value, "channelId");
            return (Criteria) this;
        }

        public Criteria andChannelIdLessThan(Long value) {
            addCriterion("card_batch.channelId <", value, "channelId");
            return (Criteria) this;
        }

        public Criteria andChannelIdLessThanOrEqualTo(Long value) {
            addCriterion("card_batch.channelId <=", value, "channelId");
            return (Criteria) this;
        }

        public Criteria andChannelIdIn(List<Long> values) {
            addCriterion("card_batch.channelId in", values, "channelId");
            return (Criteria) this;
        }

        public Criteria andChannelIdNotIn(List<Long> values) {
            addCriterion("card_batch.channelId not in", values, "channelId");
            return (Criteria) this;
        }

        public Criteria andChannelIdBetween(Long value1, Long value2) {
            addCriterion("card_batch.channelId between", value1, value2, "channelId");
            return (Criteria) this;
        }

        public Criteria andChannelIdNotBetween(Long value1, Long value2) {
            addCriterion("card_batch.channelId not between", value1, value2, "channelId");
            return (Criteria) this;
        }

        public Criteria andInsertTimeIsNull() {
            addCriterion("card_batch.insertTime is null");
            return (Criteria) this;
        }

        public Criteria andInsertTimeIsNotNull() {
            addCriterion("card_batch.insertTime is not null");
            return (Criteria) this;
        }

        public Criteria andInsertTimeEqualTo(Date value) {
            addCriterion("card_batch.insertTime =", value, "insertTime");
            return (Criteria) this;
        }

        public Criteria andInsertTimeNotEqualTo(Date value) {
            addCriterion("card_batch.insertTime <>", value, "insertTime");
            return (Criteria) this;
        }

        public Criteria andInsertTimeGreaterThan(Date value) {
            addCriterion("card_batch.insertTime >", value, "insertTime");
            return (Criteria) this;
        }

        public Criteria andInsertTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("card_batch.insertTime >=", value, "insertTime");
            return (Criteria) this;
        }

        public Criteria andInsertTimeLessThan(Date value) {
            addCriterion("card_batch.insertTime <", value, "insertTime");
            return (Criteria) this;
        }

        public Criteria andInsertTimeLessThanOrEqualTo(Date value) {
            addCriterion("card_batch.insertTime <=", value, "insertTime");
            return (Criteria) this;
        }

        public Criteria andInsertTimeIn(List<Date> values) {
            addCriterion("card_batch.insertTime in", values, "insertTime");
            return (Criteria) this;
        }

        public Criteria andInsertTimeNotIn(List<Date> values) {
            addCriterion("card_batch.insertTime not in", values, "insertTime");
            return (Criteria) this;
        }

        public Criteria andInsertTimeBetween(Date value1, Date value2) {
            addCriterion("card_batch.insertTime between", value1, value2, "insertTime");
            return (Criteria) this;
        }

        public Criteria andInsertTimeNotBetween(Date value1, Date value2) {
            addCriterion("card_batch.insertTime not between", value1, value2, "insertTime");
            return (Criteria) this;
        }

        public Criteria andInsertIdIsNull() {
            addCriterion("card_batch.insertId is null");
            return (Criteria) this;
        }

        public Criteria andInsertIdIsNotNull() {
            addCriterion("card_batch.insertId is not null");
            return (Criteria) this;
        }

        public Criteria andInsertIdEqualTo(String value) {
            addCriterion("card_batch.insertId =", value, "insertId");
            return (Criteria) this;
        }

        public Criteria andInsertIdNotEqualTo(String value) {
            addCriterion("card_batch.insertId <>", value, "insertId");
            return (Criteria) this;
        }

        public Criteria andInsertIdGreaterThan(String value) {
            addCriterion("card_batch.insertId >", value, "insertId");
            return (Criteria) this;
        }

        public Criteria andInsertIdGreaterThanOrEqualTo(String value) {
            addCriterion("card_batch.insertId >=", value, "insertId");
            return (Criteria) this;
        }

        public Criteria andInsertIdLessThan(String value) {
            addCriterion("card_batch.insertId <", value, "insertId");
            return (Criteria) this;
        }

        public Criteria andInsertIdLessThanOrEqualTo(String value) {
            addCriterion("card_batch.insertId <=", value, "insertId");
            return (Criteria) this;
        }

        public Criteria andInsertIdLike(String value) {
            addCriterion("card_batch.insertId like", value, "insertId");
            return (Criteria) this;
        }

        public Criteria andInsertIdNotLike(String value) {
            addCriterion("card_batch.insertId not like", value, "insertId");
            return (Criteria) this;
        }

        public Criteria andInsertIdIn(List<String> values) {
            addCriterion("card_batch.insertId in", values, "insertId");
            return (Criteria) this;
        }

        public Criteria andInsertIdNotIn(List<String> values) {
            addCriterion("card_batch.insertId not in", values, "insertId");
            return (Criteria) this;
        }

        public Criteria andInsertIdBetween(String value1, String value2) {
            addCriterion("card_batch.insertId between", value1, value2, "insertId");
            return (Criteria) this;
        }

        public Criteria andInsertIdNotBetween(String value1, String value2) {
            addCriterion("card_batch.insertId not between", value1, value2, "insertId");
            return (Criteria) this;
        }

        public Criteria andProvinceIsNull() {
            addCriterion("card_batch.province is null");
            return (Criteria) this;
        }

        public Criteria andProvinceIsNotNull() {
            addCriterion("card_batch.province is not null");
            return (Criteria) this;
        }

        public Criteria andProvinceEqualTo(String value) {
            addCriterion("card_batch.province =", value, "province");
            return (Criteria) this;
        }

        public Criteria andProvinceNotEqualTo(String value) {
            addCriterion("card_batch.province <>", value, "province");
            return (Criteria) this;
        }

        public Criteria andProvinceGreaterThan(String value) {
            addCriterion("card_batch.province >", value, "province");
            return (Criteria) this;
        }

        public Criteria andProvinceGreaterThanOrEqualTo(String value) {
            addCriterion("card_batch.province >=", value, "province");
            return (Criteria) this;
        }

        public Criteria andProvinceLessThan(String value) {
            addCriterion("card_batch.province <", value, "province");
            return (Criteria) this;
        }

        public Criteria andProvinceLessThanOrEqualTo(String value) {
            addCriterion("card_batch.province <=", value, "province");
            return (Criteria) this;
        }

        public Criteria andProvinceLike(String value) {
            addCriterion("card_batch.province like", value, "province");
            return (Criteria) this;
        }

        public Criteria andProvinceNotLike(String value) {
            addCriterion("card_batch.province not like", value, "province");
            return (Criteria) this;
        }

        public Criteria andProvinceIn(List<String> values) {
            addCriterion("card_batch.province in", values, "province");
            return (Criteria) this;
        }

        public Criteria andProvinceNotIn(List<String> values) {
            addCriterion("card_batch.province not in", values, "province");
            return (Criteria) this;
        }

        public Criteria andProvinceBetween(String value1, String value2) {
            addCriterion("card_batch.province between", value1, value2, "province");
            return (Criteria) this;
        }

        public Criteria andProvinceNotBetween(String value1, String value2) {
            addCriterion("card_batch.province not between", value1, value2, "province");
            return (Criteria) this;
        }

        public Criteria andCityIsNull() {
            addCriterion("card_batch.city is null");
            return (Criteria) this;
        }

        public Criteria andCityIsNotNull() {
            addCriterion("card_batch.city is not null");
            return (Criteria) this;
        }

        public Criteria andCityEqualTo(String value) {
            addCriterion("card_batch.city =", value, "city");
            return (Criteria) this;
        }

        public Criteria andCityNotEqualTo(String value) {
            addCriterion("card_batch.city <>", value, "city");
            return (Criteria) this;
        }

        public Criteria andCityGreaterThan(String value) {
            addCriterion("card_batch.city >", value, "city");
            return (Criteria) this;
        }

        public Criteria andCityGreaterThanOrEqualTo(String value) {
            addCriterion("card_batch.city >=", value, "city");
            return (Criteria) this;
        }

        public Criteria andCityLessThan(String value) {
            addCriterion("card_batch.city <", value, "city");
            return (Criteria) this;
        }

        public Criteria andCityLessThanOrEqualTo(String value) {
            addCriterion("card_batch.city <=", value, "city");
            return (Criteria) this;
        }

        public Criteria andCityLike(String value) {
            addCriterion("card_batch.city like", value, "city");
            return (Criteria) this;
        }

        public Criteria andCityNotLike(String value) {
            addCriterion("card_batch.city not like", value, "city");
            return (Criteria) this;
        }

        public Criteria andCityIn(List<String> values) {
            addCriterion("card_batch.city in", values, "city");
            return (Criteria) this;
        }

        public Criteria andCityNotIn(List<String> values) {
            addCriterion("card_batch.city not in", values, "city");
            return (Criteria) this;
        }

        public Criteria andCityBetween(String value1, String value2) {
            addCriterion("card_batch.city between", value1, value2, "city");
            return (Criteria) this;
        }

        public Criteria andCityNotBetween(String value1, String value2) {
            addCriterion("card_batch.city not between", value1, value2, "city");
            return (Criteria) this;
        }

        public Criteria andLimitActiveTimeIsNull() {
            addCriterion("card_batch.limitActiveTime is null");
            return (Criteria) this;
        }

        public Criteria andLimitActiveTimeIsNotNull() {
            addCriterion("card_batch.limitActiveTime is not null");
            return (Criteria) this;
        }

        public Criteria andLimitActiveTimeEqualTo(Date value) {
            addCriterion("card_batch.limitActiveTime =", value, "limitActiveTime");
            return (Criteria) this;
        }

        public Criteria andLimitActiveTimeNotEqualTo(Date value) {
            addCriterion("card_batch.limitActiveTime <>", value, "limitActiveTime");
            return (Criteria) this;
        }

        public Criteria andLimitActiveTimeGreaterThan(Date value) {
            addCriterion("card_batch.limitActiveTime >", value, "limitActiveTime");
            return (Criteria) this;
        }

        public Criteria andLimitActiveTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("card_batch.limitActiveTime >=", value, "limitActiveTime");
            return (Criteria) this;
        }

        public Criteria andLimitActiveTimeLessThan(Date value) {
            addCriterion("card_batch.limitActiveTime <", value, "limitActiveTime");
            return (Criteria) this;
        }

        public Criteria andLimitActiveTimeLessThanOrEqualTo(Date value) {
            addCriterion("card_batch.limitActiveTime <=", value, "limitActiveTime");
            return (Criteria) this;
        }

        public Criteria andLimitActiveTimeIn(List<Date> values) {
            addCriterion("card_batch.limitActiveTime in", values, "limitActiveTime");
            return (Criteria) this;
        }

        public Criteria andLimitActiveTimeNotIn(List<Date> values) {
            addCriterion("card_batch.limitActiveTime not in", values, "limitActiveTime");
            return (Criteria) this;
        }

        public Criteria andLimitActiveTimeBetween(Date value1, Date value2) {
            addCriterion("card_batch.limitActiveTime between", value1, value2, "limitActiveTime");
            return (Criteria) this;
        }

        public Criteria andLimitActiveTimeNotBetween(Date value1, Date value2) {
            addCriterion("card_batch.limitActiveTime not between", value1, value2, "limitActiveTime");
            return (Criteria) this;
        }

        public Criteria andAmountIsNull() {
            addCriterion("card_batch.amount is null");
            return (Criteria) this;
        }

        public Criteria andAmountIsNotNull() {
            addCriterion("card_batch.amount is not null");
            return (Criteria) this;
        }

        public Criteria andAmountEqualTo(Double value) {
            addCriterion("card_batch.amount =", value, "amount");
            return (Criteria) this;
        }

        public Criteria andAmountNotEqualTo(Double value) {
            addCriterion("card_batch.amount <>", value, "amount");
            return (Criteria) this;
        }

        public Criteria andAmountGreaterThan(Double value) {
            addCriterion("card_batch.amount >", value, "amount");
            return (Criteria) this;
        }

        public Criteria andAmountGreaterThanOrEqualTo(Double value) {
            addCriterion("card_batch.amount >=", value, "amount");
            return (Criteria) this;
        }

        public Criteria andAmountLessThan(Double value) {
            addCriterion("card_batch.amount <", value, "amount");
            return (Criteria) this;
        }

        public Criteria andAmountLessThanOrEqualTo(Double value) {
            addCriterion("card_batch.amount <=", value, "amount");
            return (Criteria) this;
        }

        public Criteria andAmountIn(List<Double> values) {
            addCriterion("card_batch.amount in", values, "amount");
            return (Criteria) this;
        }

        public Criteria andAmountNotIn(List<Double> values) {
            addCriterion("card_batch.amount not in", values, "amount");
            return (Criteria) this;
        }

        public Criteria andAmountBetween(Double value1, Double value2) {
            addCriterion("card_batch.amount between", value1, value2, "amount");
            return (Criteria) this;
        }

        public Criteria andAmountNotBetween(Double value1, Double value2) {
            addCriterion("card_batch.amount not between", value1, value2, "amount");
            return (Criteria) this;
        }

        public Criteria andTypeIsNull() {
            addCriterion("card_batch.type is null");
            return (Criteria) this;
        }

        public Criteria andTypeIsNotNull() {
            addCriterion("card_batch.type is not null");
            return (Criteria) this;
        }

        public Criteria andTypeEqualTo(String value) {
            addCriterion("card_batch.type =", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeNotEqualTo(String value) {
            addCriterion("card_batch.type <>", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeGreaterThan(String value) {
            addCriterion("card_batch.type >", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeGreaterThanOrEqualTo(String value) {
            addCriterion("card_batch.type >=", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeLessThan(String value) {
            addCriterion("card_batch.type <", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeLessThanOrEqualTo(String value) {
            addCriterion("card_batch.type <=", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeLike(String value) {
            addCriterion("card_batch.type like", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeNotLike(String value) {
            addCriterion("card_batch.type not like", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeIn(List<String> values) {
            addCriterion("card_batch.type in", values, "type");
            return (Criteria) this;
        }

        public Criteria andTypeNotIn(List<String> values) {
            addCriterion("card_batch.type not in", values, "type");
            return (Criteria) this;
        }

        public Criteria andTypeBetween(String value1, String value2) {
            addCriterion("card_batch.type between", value1, value2, "type");
            return (Criteria) this;
        }

        public Criteria andTypeNotBetween(String value1, String value2) {
            addCriterion("card_batch.type not between", value1, value2, "type");
            return (Criteria) this;
        }

        public Criteria andCardTypeIsNull() {
            addCriterion("card_batch.cardType is null");
            return (Criteria) this;
        }

        public Criteria andCardTypeIsNotNull() {
            addCriterion("card_batch.cardType is not null");
            return (Criteria) this;
        }

        public Criteria andCardTypeEqualTo(String value) {
            addCriterion("card_batch.cardType =", value, "cardType");
            return (Criteria) this;
        }

        public Criteria andCardTypeNotEqualTo(String value) {
            addCriterion("card_batch.cardType <>", value, "cardType");
            return (Criteria) this;
        }

        public Criteria andCardTypeGreaterThan(String value) {
            addCriterion("card_batch.cardType >", value, "cardType");
            return (Criteria) this;
        }

        public Criteria andCardTypeGreaterThanOrEqualTo(String value) {
            addCriterion("card_batch.cardType >=", value, "cardType");
            return (Criteria) this;
        }

        public Criteria andCardTypeLessThan(String value) {
            addCriterion("card_batch.cardType <", value, "cardType");
            return (Criteria) this;
        }

        public Criteria andCardTypeLessThanOrEqualTo(String value) {
            addCriterion("card_batch.cardType <=", value, "cardType");
            return (Criteria) this;
        }

        public Criteria andCardTypeLike(String value) {
            addCriterion("card_batch.cardType like", value, "cardType");
            return (Criteria) this;
        }

        public Criteria andCardTypeNotLike(String value) {
            addCriterion("card_batch.cardType not like", value, "cardType");
            return (Criteria) this;
        }

        public Criteria andCardTypeIn(List<String> values) {
            addCriterion("card_batch.cardType in", values, "cardType");
            return (Criteria) this;
        }

        public Criteria andCardTypeNotIn(List<String> values) {
            addCriterion("card_batch.cardType not in", values, "cardType");
            return (Criteria) this;
        }

        public Criteria andCardTypeBetween(String value1, String value2) {
            addCriterion("card_batch.cardType between", value1, value2, "cardType");
            return (Criteria) this;
        }

        public Criteria andCardTypeNotBetween(String value1, String value2) {
            addCriterion("card_batch.cardType not between", value1, value2, "cardType");
            return (Criteria) this;
        }

        public Criteria andActivedCountIsNull() {
            addCriterion("card_batch.activedCount is null");
            return (Criteria) this;
        }

        public Criteria andActivedCountIsNotNull() {
            addCriterion("card_batch.activedCount is not null");
            return (Criteria) this;
        }

        public Criteria andActivedCountEqualTo(Long value) {
            addCriterion("card_batch.activedCount =", value, "activedCount");
            return (Criteria) this;
        }

        public Criteria andActivedCountNotEqualTo(Long value) {
            addCriterion("card_batch.activedCount <>", value, "activedCount");
            return (Criteria) this;
        }

        public Criteria andActivedCountGreaterThan(Long value) {
            addCriterion("card_batch.activedCount >", value, "activedCount");
            return (Criteria) this;
        }

        public Criteria andActivedCountGreaterThanOrEqualTo(Long value) {
            addCriterion("card_batch.activedCount >=", value, "activedCount");
            return (Criteria) this;
        }

        public Criteria andActivedCountLessThan(Long value) {
            addCriterion("card_batch.activedCount <", value, "activedCount");
            return (Criteria) this;
        }

        public Criteria andActivedCountLessThanOrEqualTo(Long value) {
            addCriterion("card_batch.activedCount <=", value, "activedCount");
            return (Criteria) this;
        }

        public Criteria andActivedCountIn(List<Long> values) {
            addCriterion("card_batch.activedCount in", values, "activedCount");
            return (Criteria) this;
        }

        public Criteria andActivedCountNotIn(List<Long> values) {
            addCriterion("card_batch.activedCount not in", values, "activedCount");
            return (Criteria) this;
        }

        public Criteria andActivedCountBetween(Long value1, Long value2) {
            addCriterion("card_batch.activedCount between", value1, value2, "activedCount");
            return (Criteria) this;
        }

        public Criteria andActivedCountNotBetween(Long value1, Long value2) {
            addCriterion("card_batch.activedCount not between", value1, value2, "activedCount");
            return (Criteria) this;
        }

        public Criteria andQrurlIsNull() {
            addCriterion("card_batch.qrurl is null");
            return (Criteria) this;
        }

        public Criteria andQrurlIsNotNull() {
            addCriterion("card_batch.qrurl is not null");
            return (Criteria) this;
        }

        public Criteria andQrurlEqualTo(String value) {
            addCriterion("card_batch.qrurl =", value, "qrurl");
            return (Criteria) this;
        }

        public Criteria andQrurlNotEqualTo(String value) {
            addCriterion("card_batch.qrurl <>", value, "qrurl");
            return (Criteria) this;
        }

        public Criteria andQrurlGreaterThan(String value) {
            addCriterion("card_batch.qrurl >", value, "qrurl");
            return (Criteria) this;
        }

        public Criteria andQrurlGreaterThanOrEqualTo(String value) {
            addCriterion("card_batch.qrurl >=", value, "qrurl");
            return (Criteria) this;
        }

        public Criteria andQrurlLessThan(String value) {
            addCriterion("card_batch.qrurl <", value, "qrurl");
            return (Criteria) this;
        }

        public Criteria andQrurlLessThanOrEqualTo(String value) {
            addCriterion("card_batch.qrurl <=", value, "qrurl");
            return (Criteria) this;
        }

        public Criteria andQrurlLike(String value) {
            addCriterion("card_batch.qrurl like", value, "qrurl");
            return (Criteria) this;
        }

        public Criteria andQrurlNotLike(String value) {
            addCriterion("card_batch.qrurl not like", value, "qrurl");
            return (Criteria) this;
        }

        public Criteria andQrurlIn(List<String> values) {
            addCriterion("card_batch.qrurl in", values, "qrurl");
            return (Criteria) this;
        }

        public Criteria andQrurlNotIn(List<String> values) {
            addCriterion("card_batch.qrurl not in", values, "qrurl");
            return (Criteria) this;
        }

        public Criteria andQrurlBetween(String value1, String value2) {
            addCriterion("card_batch.qrurl between", value1, value2, "qrurl");
            return (Criteria) this;
        }

        public Criteria andQrurlNotBetween(String value1, String value2) {
            addCriterion("card_batch.qrurl not between", value1, value2, "qrurl");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}